from com.zjs.crawer.urlcontent.baseurlcontent import BaseUrlContent
from com.zjs.zjsqueue import zurlpathqueue
import logging

class LianJiaHook(BaseUrlContent):
    
    __homeurl = None
    
    def __init__(self,homeurl):
        self.__homeurl = homeurl
        logging.debug("启动 hook:lianjia")
    
    
    def run(self):
        for i in range(1,100):
            zurlpathqueue.put("lianjia", "https://fs.lianjia.com/zufang/pg"+str(i))
            logging.debug("[hook][lianjia]:"+"lianjia" + "https://fs.lianjia.com/zufang/pg"+str(i))
